<@_tagList advanced=true name=name typeId=typeId orderField=orderField orderType=orderType pageIndex=pageNum count=numPerPage>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>名称:</label>
					<input type="text" name="name" value="${(name)!}" />
				</li>
				<li>
					<label>类型:</label>
					<#if typeId?has_content><@_tagType id=typeId><#assign typeName=(object.name)!/></@_tagType></#if>
					<input type="hidden" name="typeId" value="${typeId!}" />
					<input class="readonly" readonly="readonly" name="typeName" type="text" size="10" value="${(typeName)!}"/>
					<a class="btnLook" href="cmsTagType/lookup.html?typeId=${typeId!}" width="920" warn="请选择标签分类" lookupGroup="">选择标签分类</a>
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li>
						<button type="submit" class="buttonActive">搜索</button>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a href="cmsTag/add.html" target="navTab" rel="cmsTag/add"><i class="icon-plus-sign-alt icon-large"></i> 添加标签</a></li>
			<li><a href="cmsTag/add.html?id={sid}" target="navTab" rel="cmsTag/edit"><i class="icon-edit icon-large"></i> 修改标签</a></li>
			<li><a href="cmsTag/delete.do" title="确定要删除这些记录吗?" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i> 批量删除</a></li>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="99">
		<thead>
			<tr>
				<th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="30">ID</th>
				<th>名称</th>
				<th>标签分类</th>
				<th orderField="searchCount" class="<#if orderField??&&'searchCount'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">热度</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
				<@t.merge 'typeIds' a.typeId!/>
			</#list>

			<@_tagType ids=t.typeIds!><#assign typeMap=map!/></@_tagType>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td><input name="ids" value="${a.id}" type="checkbox"></td>
				<td>${a.id}</td>
				<td>${(a.name)!}</td>
				<td>${(typeMap[a.typeId?string].name)!}</td>
				<td>${a.searchCount!}</td>
				<td>
					<a href="cmsTag/add.html?id=${a.id}" target="navTab" rel="cmsTag/edit">修改</a>
					<a href="cmsTag/delete.do?ids=${a.id}" title="确定要删除这条记录吗?" target="ajaxTodo">删除</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_tagList>